package com.elinkway.infinitemovies.http.parser;

import com.elinkway.infinitemovies.bean.ReportSubmitBean;

import org.json.JSONException;
import org.json.JSONObject;

/**
 * Created by zhaopeipei on 2016/5/3.
 */
public class ReportSubmitParser extends LVideoMobileParser<ReportSubmitBean> {

    @Override
    public ReportSubmitBean parse(JSONObject data) throws Exception {
        ReportSubmitBean submitBean;
        submitBean = new ReportSubmitBean();
        String code = super.getCode();
        String msg = super.getMsg();
        submitBean.setCode(code);
        submitBean.setMsg(msg);
        return submitBean;
    }

    @Override
    public JSONObject getData(String data) throws JSONException {
        data = "{\"data\":\"data\"}";
        return super.getData(data);
    }

}
